<#import "commons.ftl" as m/>

package <@m.getBasePackage param=context flag=true/><@m.getModelPackage param=context flag=false/>;

import java.util.Date;

import <@m.getFrameBasePackage param=context flag=true/><@m.getFrameDataPackage param=context flag=true/><@m.getFrameDomain param=context/>;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * <pre>
 *	<b>表名</b>：${table.origName}
 *  ${(table.comment)!''}，其中一些通用字段在ModelDO和BaseDO里面，该对象基本上只用于数据保存使用。
 * </pre>
 *
 * @author ${context.conf.author!'系统生成'}
 * @email ${context.conf.email!'系统生成'}
 * @version ${context.conf.version!'1.0.0'}
 * @date ${.now?string('yyyy-MM-dd')}
 * @copyright ${context.conf.copyright!'系统生成'}
 */
@Getter
@Setter
@Api("${table.comment!''}")
public class ${table.upperName}<@m.getModelSuffix param=context/><@m.getFrameExtendsDomain param=context/> {
<#if table.dataList??>
  <#list table.dataList as field>
  	<#if field.writeDomain>
	/**
	 * <pre>
	 * 数据库字段: ${field.name}
	 * 描述: ${field.comment!''};字段长度:${field.length!''},是否必填:<#if field.must?? &&field.must=='NO'>是<#else>否</#if>。
	 * </pre>
	 */
	@ApiModelProperty("${field.comment!''}")
    private ${field.javaType!''} ${field.lowerName!''};
    </#if>
  </#list>

</#if>
	@Override
	public String toString() {
        return ToStringBuilder.reflectionToString(this);
	}
	
}
